package com.tencent.iov.cowin.befsale.clue.dao.http.crm;

import com.tencent.iov.cowin.befsale.clue.value.contants.ServiceConstant;
import com.software.boot.common.entity.Response;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: zly
 * @description:
 * @createDate: 2022-01-22
 **/

@FeignClient( name=ServiceConstant.CRM_SYS_SERVICE,url = ServiceConstant.CRM_SYS_API_HOST)
public interface CrmSysClient {

    /**
     * add by zly
     * 2022-01-23
     * crm服务获取token
     * @return
     */
    @PostMapping("crm-sys-api/api/v1/auth/external/token")
    @ApiOperation(value = "获取token", httpMethod = "POST", response = Response.class, notes = "getCrmToken")
    Response getCrmToken(@RequestParam(value = "sourceID") Long sourceID,@RequestParam(value = "userName") String userName,@RequestParam(value = "passWord") String passWord);

}
